﻿@model IEnumerable<Lehnet.Models.Il>
<p>
    @Html.ActionLink("Yeni", "Olustur")
</p>
<table class="bordered">
    <thead>
        <tr>
            <th>Ad
            </th>
            <th>Aktif
            </th>
            <th>Düzenle</th>
            <th>Sil</th>
        </tr>
    </thead>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Ad)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Aktif)
            </td>
            <td>
                @Html.ActionLink("Düzenle", "Edit", new { id = item.Id })
               
            </td>
            <td>
                @Html.ActionLink("Sil", "Delete", new { id = item.Id })
            </td>
        </tr>
    }
</table>
